#ifndef __gpio_buzzer_h
#define __gpio_buzzer_h
#include <stdint.h>



typedef struct Music{
	 uint16_t hz;
	 unsigned int duration ;
}Music,*PMusic;


#define HZ_DELAY(HZ) 1000000 / ((uint16_t)(HZ)) / 2

void buzzer_init(void);
void buzzer_play(uint16_t hz, long duration);

void buzzer_bi(uint16_t hz);
#endif
